/* Exercice 5.40
   ejer5_40.c */
#include <stdio.h>

/* function main begins program exectution */
int main(void)
{
    static int counter = 1;

    printf("%d\n", counter);
    ++counter;
    main();

    return 0;
} /* end function main */

/*
Conclusion: the function main can call itself, in other words, main
can be a recursive funcion, in this case the program calls main and
everytime that main is reached it prints a static counter and increment
it for one, this will finish when the stack would have been filled and the
program crash*/
